<div id="top-panel">
    <div id="panel">
        <ul>
            <li><a href="<?php echo site_url("kiosk/create"); ?>" class="report">Create</a></li>  		
        </ul>
		
		
    </div>
</div>
<div id="wrapper">
	<div id="content">
	
		<div id="rightnow">
			<h3 class="reallynow">Kiosk list</h3>
			<div class="search_wrap">			
				<?php echo form_open('kiosk/search', array('class'=>'form_search')) ?>
				Search: <input type="text" name="search_text" id="search_text" class="input" />
			</div>
			<?php if (count($kiosk)): ?>
			<table width="100%">
				<thead>
					<tr>
						<th>MacAddress</th>
						<th>Name</th>
						<th>Address</th>
						<th>Amount</th>	
						<th>View chart</th>				
						<th>Task</th>					
					</tr>
				</thead>
				<tbody>
					<?php foreach($kiosk as $v): ?>
					<tr>
						<td><div style="padding-left:10px;"><?php echo $v['mac_address']; ?></div></td>
						<td><div style="padding-left:10px;"><a class="tool" href="<?php echo site_url("kiosk/edit/".$v['id']); ?>"><?php echo $v['name']; ?></a></div></td>
						<td><div style="padding-left:10px;"><?php echo $v['address']; ?></div></td>
						<td><div style="padding-left:10px;"><?php echo $v['total_donate']; ?></div></td>
						<td><div align="center"><a class="tool" href="<?php echo site_url("statistic/device/".$v['id']); ?>">Go</a></div></td>
						<td><div align="center"><a class="tool" href="<?php echo site_url("kiosk/delete/".$v['id']); ?>">Delete</a></div></td>
					</tr>
					<?php endforeach; ?>
				</tbody>
			</table>
			<div id="pager">
				<?php echo $this->pagination->create_links(); ?>
			</div>
			<?php else: ?>
				<p>No data to display</p>
			<?php endif; ?>
		</div>
	</div>
</div>